<template>
	<view class="searchBoxContainer">
		<view class="input" @click="toSearch">
			<input type="text" placeholder="关键词" />
			<image src="../../static/images/搜索.png" mode=""></image>
			<button size="mini" type="primary">搜索</button>
		</view>
		
	</view>
</template>

<script>
	export default {
		name:"searchBox",
		data() {
			return {
				
			};
		},
		methods:{
			toSearch(){
				uni.navigateTo({
					url:'../../pages/search/search'
				})
			}
		}
	}
</script>

<style lang="less">
	.searchBoxContainer{
		width: 100%;
		height: 90rpx;
		.input {
			// background: white;
			width: 700rpx;
			margin-top: 20rpx;
			// background: #ededed;
			height: 60rpx;
			margin: 0 auto;
			position: relative;
			display: flex;
			justify-content: space-between;
			input {
				width: 380rpx;
				height: 60rpx;
				background: white;
				border-radius: 30rpx;
				position: absolute;
				left: 0;
				top: 16rpx;
				padding: 0 90rpx;
			}
			image {
				width: 30rpx;
				height: 30rpx;
				position: absolute;
				left: 50rpx;
				top: 32rpx;
			}
			button {
				background-color: #28b2f9;
				position: absolute;
				right: 10rpx;
				top: 16rpx;
			}
		}
		
	}
</style>
